package quanlythuvien

class NhanVien {
	String code
	String hoTen
	Date ngaySinh
	String diaChi
	String dienThoai
	String hocVi
	String chucVu
	String email
	String matKhau
	int tinhTrang
    static constraints = {
		code (blank:false, nullable:false, size:3..50,unique:true)
		hoTen(hoTen:true,size:3..255)
		ngaySinh(ngaySinh:true)
		diaChi(diaChi:true,size:3..255)
		dienThoai(dienThoai:true,size:3..50)
		hocVi(hocVi:true,size:3..255)
		chucVu(chucVu:true,size:3..255)
		email(nullable:false, size:3..255, email:true)
    }
}
